package com.gengzp.rpc.model.serviceRegistration.dto;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName ServiceRegistrationDto
 * @Description 服务注册信息实体类
 * @Author gengzp
 * @Date 2025/10/13 20:03
 */
public class ServiceRegistrationDto implements Serializable {

    @Serial
    private static final long serialVersionUID = -8597848333881488003L;

    /**
     * 服务名
     */
    private String serviceName;

    /**
     * ip
     */
    private String ip;

    /**
     * 端口
     */
    private String port;

    /**
     * 注册 ip 类型
     * {@link com.gengzp.rpc.enums.RpcServiceRegisterIpTypeEnum}
     */
    private String registerIpType;

    /**
     * 注册时间
     */
    private Date registerTime;

    /**
     * 过期时间
     */
    private Date expireTime;

    public ServiceRegistrationDto() {
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getRegisterIpType() {
        return registerIpType;
    }

    public void setRegisterIpType(String registerIpType) {
        this.registerIpType = registerIpType;
    }

    public Date getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Date registerTime) {
        this.registerTime = registerTime;
    }

    public Date getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

}
